home *** CD-ROM | disk | FTP | other *** search
- on GestAvantMCD
- global listMCD
- set NumTitre to getAt(listMCD, 1) + 1
- if NumTitre > getAt(listMCD, 6) then
- set NumTitre to 1
- end if
- SetNumTitreMCD(NumTitre)
- InitTitreMCD()
- end
-
- on GestArriereMCD
- global listMCD
- set NumTitre to getAt(listMCD, 1) - 1
- if NumTitre < 1 then
- set NumTitre to getAt(listMCD, 6)
- end if
- SetNumTitreMCD(NumTitre)
- InitTitreMCD()
- end
-
- on ClicSurTitreMCD NumTitre
- PlayClick()
- AffMessAttente()
- SetNumTitreMCD(NumTitre)
- SetDcRollOver()
- SetDcRollCast()
- FalseReste()
- GoFrame("DebTitre")
- end
-
- on ClicSurEtatMCD NumEtat
- PlayClick()
- ForceEtatMCD(NumEtat)
- end
-
- on ForceEtatMCD NumEtat
- AffMessAttente()
- SetEtatTitreMCD(NumEtat)
- AffRubMCD()
- end
-
- on InitMCD
- puppetTempo(60)
- RecupListMCD()
- SetMacroEnd("MacroEndMCD")
- end
-
- on ChoixSonMCD Op
- global listMCD
- if getAt(listMCD, 3) = "CDACTU" then
- set AccuC to "CDA_BCLC CDA_BCLE CDA_BCLL CDA_BCLU"
- else
- set AccuC to "CDJEBCL1.AIF CDJEBCL2.AIF CDJEBCL3.AIF"
- end if
- set Fichier to word random(the number of words in AccuC) of AccuC
- if paramCount() <> 0 then
- PlaySoundTest(1, "Puppet", Fichier)
- end if
- KeepSound(1, "Puppet", Fichier)
- end
-
- on InitAnimMCD Op
- global listMCD, MacroFrameAsk
- AffMessAttente()
- InitListMCD()
- if getAt(listMCD, 3) = "CDACTU" then
- InitBarrette("010")
- end if
- set ParaPuce to getAt(listMCD, 3) & " DebSom NAVIG #"
- SetMemoNavPuce(ParaPuce, 0)
- set MacroFrameAsk to EMPTY
- if getAt(listMCD, 3) = "CDJEUX" then
- SkipMCD()
- end if
- end
-
- on SkipMCD
- set Para to getAt(listMCD, 3) & " DebSom QTspriteEfface(1)"
- ActiveSkip(Para)
- end
-
- on InitSomMCD
- global listMCD
- ChoixSonMCD(1)
- InitBarrette("010")
- AffMessAttente()
- DesactiveSkip()
- ActiveScrSaver()
- set ParaPuce to getAt(listMCD, 3) & " DebSom NAVIG #"
- SetMemoNavPuce(ParaPuce, 0)
- UnLoadCastTitreMCD()
- puppetSprite(4, 1)
- if the number of cast "C2_TitreM2" <> -1 then
- set Champs to "11 C1_TitreM1 C2_TitreM1 R_Cliquez 12 C1_TitreM2 C2_TitreM2 R_Cliquez 13 C1_TitreM3 C2_TitreM3 R_Cliquez 14 C1_TitreM4 C2_TitreM4 R_Cliquez 15 C1_TitreM5 C2_TitreM5 R_Cliquez 16 C1_TitreM6 C2_TitreM6 R_Cliquez 17 C1_TitreM7 C2_TitreM7 R_Cliquez 18 C1_TitreM8 C2_TitreM8 R_Cliquez 19 C1_TitreM9 C2_TitreM9 R_Cliquez 20 C1_TitreM10 C2_TitreM10 R_Cliquez "
- InitRollGen(Champs)
- set Champs to "EffPictTitreMCD C2_TitreM1 1 AffPictTitreMCD(1) C2_TitreM2 1 AffPictTitreMCD(2) C2_TitreM3 1 AffPictTitreMCD(3) C2_TitreM4 1 AffPictTitreMCD(4) C2_TitreM5 1 AffPictTitreMCD(5) C2_TitreM6 1 AffPictTitreMCD(6) C2_TitreM7 1 AffPictTitreMCD(7) C2_TitreM8 1 AffPictTitreMCD(8) C2_TitreM9 1 AffPictTitreMCD(9) C2_TitreM10 1 AffPictTitreMCD(10) "
- InitRollCast(Champs)
- else
- set Champs to "ClicSurTitreMCD(1) R_Cliquez ClicSurTitreMCD(2) R_Cliquez ClicSurTitreMCD(3) R_Cliquez ClicSurTitreMCD(4) R_Cliquez ClicSurTitreMCD(5) R_Cliquez ClicSurTitreMCD(6) R_Cliquez ClicSurTitreMCD(7) R_Cliquez ClicSurTitreMCD(8) R_Cliquez ClicSurTitreMCD(9) R_Cliquez ClicSurTitreMCD(10) R_Cliquez"
- InitRollCadre(25, "RollCD", 1, getAt(listMCD, 6), 210, 31, 0, 0, Champs)
- end if
- end
-
- on InitTitreDebMCD
- global MacroFrameAsk
- InitBarrette("111")
- AffMessAttente()
- PutEtatSprite(1, "04_05_10")
- if (MacroFrameAsk <> EMPTY) and (voidp(MacroFrameAsk) = 0) then
- set NumTitre to value(MacroFrameAsk)
- SetNumTitreMCD(NumTitre)
- set MacroFrameAsk to EMPTY
- end if
- EffaceVideoMCD()
- UnLoadCastPetitQTMCD()
- UnLoadCastSomMCD()
- InitTitreMCD()
- end
-
- on InitTitreMCD
- global listMCD
- AffMessAttente()
- ActiveScrSaver()
- if getAt(listMCD, 3) = "CDJEUX" then
- SetEtatTitreMCD(2)
- else
- SetEtatTitreMCD(1)
- end if
- set NomAnim to getAt(listMCD, 3)
- set ParaPuce to NomAnim & " DebTitre#" & string(getAt(listMCD, 1)) & " " & NomAnim & " DebSom"
- SetMemoNavPuce(ParaPuce)
- set ParaPuce to NomAnim & " DebTitre " & NomAnim & " DebSom PuceTitreMCD"
- SetMemoNavPuce(ParaPuce, 0)
- set the castNum of sprite 5 to getAt(listMCD, 5) + getAt(listMCD, 1)
- if getAt(listMCD, 3) <> "CDJEUX" then
- AffPictTitreMCD(getAt(listMCD, 1))
- end if
- AffRubMCD()
- UnLoadCastTitreSeulMCD()
- PlayVoixOffMCD()
- end
-
- on PuceTitreMCD
- EffaceVideoMCD()
- Cson(1)
- end
-
- on AffRubMCD
- global listMCD, CastEfface, listFichSound
- if getAt(listMCD, 10) = 3 then
- EffaceVideoMCD()
- end if
- set NomMacro to word getAt(listMCD, 2) of "AffAvisMCD AffVisiteMCD AffOeilMCD AffInfoMCD"
- if (getAt(listMCD, 3) = "CDACTU") and (NomMacro <> "AffInfoMCD") then
- if (getAt(listFichSound, 3) <> ("CD_S" & string(getAt(listMCD, 1)))) and (soundBusy(1) <> 0) then
- Cson(1)
- end if
- end if
- DiaporamaOff()
- set the castNum of sprite 6 to CastEfface
- set the castNum of sprite 7 to CastEfface
- set the castNum of sprite 8 to CastEfface
- updateStage()
- AnnuleMacroVar()
- do(NomMacro)
- updateStage()
- UnLoadCastTitreCibleMCD()
- RestoreCursor()
- end
-
- on AffAvisMCD
- global listMCD
- set Champs to "11 B2_Avis B3_Avis R_EnCours 12 B1_Visite B3_Visite R_Cliquez 14 B1_Info B3_Info R_Cliquez"
- InitRollGen(Champs)
- set Champs to "13 B1_Oeil B3_Oeil R_Cliquez"
- GestSiRollOeilMCD(Champs)
- puppetSprite(6, 1)
- set the castNum of sprite 6 to getAt(listMCD, 7) + getAt(listMCD, 1)
- end
-
- on PlayVoixOffMCD
- global listMCD, CheminDisk
- if word getAt(listMCD, 1) * 2 of the text of cast "ChampsVoixOff" = "N" then
- return ChoixSonMCD()
- end if
- set Fichier to CheminDisk & ":_" & getAt(listMCD, 3) & ":CDSONS:CD_S" & string(getAt(listMCD, 1))
- PlaySound(1, "PLAY", Fichier)
- ChoixSonMCD()
- updateStage()
- end
-
- on AffVisiteMCD
- global listMCD, CheminDisk
- set Champs to "11 B1_Avis B3_Avis R_Cliquez 12 B2_Visite B3_Visite R_EnCours 14 B1_Info B3_Info R_Cliquez"
- InitRollGen(Champs)
- set Champs to "13 B1_Oeil B3_Oeil R_Cliquez"
- GestSiRollOeilMCD(Champs)
- set NumTitre to string(getAt(listMCD, 1))
- set NomFichier to CheminDisk & ":_" & getAt(listMCD, 3) & ":CD_DIA:CD_SV0" & NumTitre
- set ParaSound to the text of cast ("Diapo" & NumTitre)
- SetDiaporama(1, "Play", NomFichier, 255, 7, ParaSound, 0)
- end
-
- on AffOeilMCD
- global listMCD
- set NomCast to "Video" & string(getAt(listMCD, 1))
- if the number of cast NomCast = -1 then
- return AffAvisMCD()
- end if
- set Champs to "11 B1_Avis B3_Avis R_Cliquez 12 B1_Visite B3_Visite R_Cliquez 14 B1_Info B3_Info R_Cliquez"
- InitRollGen(Champs)
- set Champs to "13 B2_Oeil B3_Oeil R_Cliquez"
- GestSiRollOeilMCD(Champs)
- set the locH of sprite 10 to the locH of sprite 1
- set the locV of sprite 10 to the locV of sprite 1
- QTspriteStart([10, NomCast, 0, 1, 255, 1, 1, 0, 1, 0, 1, 0, 0, 0])
- updateStage()
- QTspriteStart([10, #auto, 1, 1])
- SetDcMacroVar("ScruteQTMCD")
- end
-
- on ScruteQTMCD
- if the movieRate of sprite 10 = 0 then
- ForceEtatMCD(1)
- end if
- end
-
- on GestSiRollOeilMCD Champs
- global listMCD
- set NumCastVideo to the number of cast ("Video" & string(getAt(listMCD, 1)))
- if NumCastVideo = -1 then
- set Champs to "13 CastFactice CastFactice R_Cliquez"
- end if
- AjouteRollGen(Champs)
- end
-
- on AffInfoMCD
- global listMCD
- set Champs to "11 B1_Avis B3_Avis R_Cliquez 12 B1_Visite B3_Visite R_Cliquez 14 B2_Info B3_Info R_EnCours"
- InitRollGen(Champs)
- set Champs to "13 B1_Oeil B3_Oeil R_Cliquez"
- GestSiRollOeilMCD(Champs)
- puppetSprite(8, 1)
- set the castNum of sprite 8 to getAt(listMCD, 8) + getAt(listMCD, 1)
- end
-
- on EffPictTitreMCD
- global CastEfface
- set the castNum of sprite 4 to CastEfface
- end
-
- on AffPictTitreMCD NumTitre
- global listMCD
- set the castNum of sprite 4 to getAt(listMCD, 4) + NumTitre
- updateStage()
- end
-
- on EffaceVideoMCD
- QTspriteEfface(10)
- end
-
- on SetNumTitreMCD NumTitre
- global listMCD
- setAt(listMCD, 9, getAt(listMCD, 1))
- setAt(listMCD, 1, NumTitre)
- end
-
- on SetEtatTitreMCD NumEtat
- global listMCD
- setAt(listMCD, 10, getAt(listMCD, 2))
- setAt(listMCD, 2, NumEtat)
- end
-
- on InitListMCD
- global listMCD
- set listMCD to list(1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0)
- set NomAnim to MakeNomPropre(the movie)
- set NomAnim to chars(NomAnim, 1, length(NomAnim) - 4)
- setAt(listMCD, 3, NomAnim)
- setAt(listMCD, 4, the number of cast "PictTitre1" - 1)
- setAt(listMCD, 5, the number of cast "Titre1" - 1)
- repeat with compt = 1 to 10
- set LimitCast to compt
- if the number of cast ("Titre" & string(compt)) = -1 then
- set LimitCast to compt - 1
- exit repeat
- end if
- end repeat
- setAt(listMCD, 6, LimitCast)
- setAt(listMCD, 7, the number of cast "Avis1" - 1)
- setAt(listMCD, 8, the number of cast "Info1" - 1)
- setAt(listMCD, 11, the number of cast "CastRef1")
- setAt(listMCD, 12, the number of cast "CastRef2")
- end
-
- on RecupListMCD
- set NomAnim to MakeNomPropre(the movie)
- set NomAnim to chars(NomAnim, 1, length(NomAnim) - 4)
- set NomMacro to "RecupList" & NomAnim
- do(NomMacro)
- end
-
- on SauveListMCD
- set NomAnim to MakeNomPropre(the movie)
- set NomAnim to chars(NomAnim, 1, length(NomAnim) - 4)
- set NomMacro to "SauveList" & NomAnim
- do(NomMacro)
- end
-
- on RecupListCDACTU
- global listMCD, listCDactu
- if voidp(listCDactu) or (listCDactu = list()) then
- return InitListMCD()
- end if
- set listMCD to listCDactu
- set listCDactu to list()
- end
-
- on SauveListCDACTU
- global listMCD, listCDactu
- set listCDactu to listMCD
- set listMCD to list()
- end
-
- on RecupListCDJEUX
- global listMCD, listCDjeux
- if voidp(listCDjeux) or (listCDjeux = list()) then
- return InitListMCD()
- end if
- set listMCD to listCDjeux
- set listCDjeux to list()
- end
-
- on SauveListCDJEUX
- global listMCD, listCDjeux
- set listCDjeux to listMCD
- set listMCD to list()
- end
-
- on RecupListCDKIDS
- global listMCD, listCDkids
- if voidp(listCDkids) or (listCDkids = list()) then
- return InitListMCD()
- end if
- set listMCD to listCDkids
- set listCDkids to list()
- end
-
- on SauveListCDKIDS
- global listMCD, listCDkids
- set listCDkids to listMCD
- set listMCD to list()
- end
-
- on MacroEndMCD
- SauveListMCD()
- Cson()
- end
-
- on UnLoadCastSomMCD
- global listMCD
- AffMessAttente()
- unLoadCast(81)
- set CastDeb to getAt(listMCD, 11) + 1
- unLoadCast(CastDeb, CastDeb + 9)
- unLoadCast(CastDeb + 10, CastDeb + 19)
- unLoadCast(CastDeb + 20, CastDeb + 29)
- RestoreCursor()
- end
-
- on UnLoadCastTitreMCD
- global listMCD
- AffMessAttente()
- UnLoadCastPetitQTMCD()
- unLoadCast(71, 79)
- unLoadCast(82)
- set CastDeb to getAt(listMCD, 11) + 1
- unLoadCast(CastDeb + 20, CastDeb + 29)
- unLoadCast(CastDeb + 30, CastDeb + 39)
- unLoadCast(CastDeb + 40, CastDeb + 49)
- unLoadCast(CastDeb + 50, CastDeb + 59)
- set CastDeb to getAt(listMCD, 12) + 1
- unLoadCast(CastDeb, CastDeb + 11)
- unLoadCast(171, 300)
- RestoreCursor()
- end
-
- on UnLoadCastTitreCibleMCD
- global listMCD
- set CastDeb to getAt(listMCD, 11)
- set LastCast to getAt(listMCD, 9)
- unLoadCast(CastDeb + 40 + LastCast)
- if getAt(listMCD, 10) = 2 then
- unLoadCast(171, 300)
- end if
- unLoadCast(70 + LastCast)
- unLoadCast(CastDeb + 50 + LastCast)
- end
-
- on UnLoadCastTitreSeulMCD
- global listMCD
- unLoadCast(getAt(listMCD, 11) + 20 + getAt(listMCD, 9))
- unLoadCast(getAt(listMCD, 11) + 30 + getAt(listMCD, 9))
- end
-
- on UnLoadCastPetitQTMCD
- unLoadCast(the number of cast "PTIQUICK")
- end
-
- on InitCastName1
- set CastDeb to the number of cast "CastRef1"
- repeat with compt = 1 to 10
- set the name of cast (CastDeb + compt) to "C1_TitreM" & string(compt)
- set the name of cast (CastDeb + compt + 10) to "C2_TitreM" & string(compt)
- set the name of cast (CastDeb + compt + 20) to "PictTitre" & string(compt)
- set the name of cast (CastDeb + compt + 30) to "Titre" & string(compt)
- set the name of cast (CastDeb + compt + 40) to "Avis" & string(compt)
- set the name of cast (CastDeb + compt + 50) to "Info" & string(compt)
- end repeat
- end
-
- on InitCastName2
- set CastDeb to the number of cast "CastRef2" + 1
- repeat with compt = 1 to 3
- set the name of cast CastDeb to "B" & string(compt) & "_Avis"
- set the name of cast (CastDeb + 1) to "B" & string(compt) & "_Visite"
- set the name of cast (CastDeb + 2) to "B" & string(compt) & "_Oeil"
- set the name of cast (CastDeb + 3) to "B" & string(compt) & "_Info"
- set CastDeb to CastDeb + 4
- end repeat
- end
-
- on InitChamps
- set Champs to EMPTY
- set ChampsCast to "EffPictTitreMCD "
- repeat with compt = 1 to 10
- set Champs to Champs & string(compt + 10) & " "
- set Champs to Champs & "C1_TitreM" & string(compt) & " "
- set Champs to Champs & "C2_TitreM" & string(compt) & " "
- set Champs to Champs & "R_Cliquez" & " "
- set ChampsCast to ChampsCast & "C2_TitreM" & string(compt) & " "
- set ChampsCast to ChampsCast & "1 "
- set ChampsCast to ChampsCast & "AffPictTitreMCD(" & string(compt) & ") "
- end repeat
- put Champs
- put ChampsCast
- end
-